package Control;

import Acquaintance.IAPlace;
import DALFactory.IDALFactory;
import DALFactory.IDataMapper2;
import java.util.ArrayList;

/** 控制层CPlace
 * 负责代理转发POI点查询申请
 *
 * @author Administrator
 */
public class CPlace {

    /**
     * 
     * @param name
     * @return 
     */


    public ArrayList<IAPlace> SearchByName(String name) {
        IDALFactory idf = CCache.getCache().getDALFactory();
        IDataMapper2 dm = idf.CreateDataMapper2();
        return dm.SearchByName(name);
    }

    /**
     * 
     * @param Type
     * @return 
     */
    public ArrayList<IAPlace> SearchByType(String Type) {
        IDALFactory idf = CCache.getCache().getDALFactory();
        IDataMapper2 dm = idf.CreateDataMapper2();
        return dm.SearchByType(Type);
    }
}
